﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaterialStorage.Model
{
    /// <summary>
    /// 材料
    /// </summary>
    public class Material
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public Material()
        {
            this.Id = int.MinValue;
        }

        public List<dynamic> GetList(DavidDB.ADO.DBManager db)
        {
            var query = db.GetList(new Material()).ToList();
            return query;
        }
    }
}
